//
//  QRModel.h
//  SDKTest
//
//  Created by edz on 2020/6/30.
//  Copyright © 2020 LI. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "XHQRDefine.h"
#import "DIYModel.h"

#import "ColorModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface QRModel : NSObject
/*common*/
//二维码字符串
@property (nonatomic, copy) NSString *QRStr;
//二维码类型
@property (nonatomic, assign) QRType type;
//createTime
@property (nonatomic, assign) int64_t createTime;
//name
@property (nonatomic,copy) NSString *name;
//DB扩展信息
//大图存储路径
@property (nonatomic, copy) NSString *filePath;
//缩略图存储路径
@property (nonatomic, copy) NSString *thumPath;
//是否保存到我的
@property (nonatomic, assign) BOOL isSave;
//大图读取
@property (nonatomic, weak) UIImage *oimage;
//缩略图读取
@property (nonatomic, strong) UIImage *thuimage;
//是否是扫描码
@property (nonatomic, assign) BOOL isScanResult;

/*Local */
//二维码背景
@property (nonatomic, strong) UIImage *bgImage;
//高斯模糊图片
@property (nonatomic, strong) UIImage *buImage;
//二维码显示显示位置
@property (nonatomic, assign) CGRect QRFrame;
//二维码板框图片
@property (nonatomic, strong) UIImage *boarderImage;
//二维码板框图片
@property (nonatomic, strong) UIImage *boarderLableImage;
//
//二维码logo
@property (nonatomic, strong) UIImage *logo;

//绘制模式
@property (nonatomic, assign) QRDrawType dType;
//二维码形状
@property (nonatomic, assign) QRShapeType shape;
//是否使用高斯模糊
@property (nonatomic, assign) BOOL isVague;
//二维码颜色 实用此颜色后 默认背景色为白色 背景图片 失效
@property (nonatomic, strong) UIColor *codeColor;
//背景色 边框色 默认为白色
@property (nonatomic, strong) UIColor *bgColor;

@property (nonatomic, assign) CGFloat zoom;
//ext
@property (nonatomic, strong) DIYModel *diyModel;
@property (nonatomic, assign) CGFloat perDur;
@property (nonatomic, strong) ColorModel *colorModel;

//DIY码信息
@property (nonatomic, strong) NSArray  *gifArr;
@property (nonatomic, assign) NSInteger gifTag;

////扩展图片二维码
//@property (nonatomic,strong)UIImage *uploadImage;
//名片Lable扩展
@property (nonatomic, strong)NSArray *lables;

- (instancetype)initWithQrStr:(NSString *)qrStr;
- (UIImage *)realBg;

@end

NS_ASSUME_NONNULL_END
